import request from '@/utils/request'

export default {
  getRootData(params) {
    return request({
      url: '/sxProductBasicInfo/getRootData',
      method: 'get',
      params
    })
  },

  getRootData1(params) {
    return request({
      url: '/sxProductBasicInfo/getRootData1',
      method: 'get',
      params
    })
  },

  getList(params) {
    return request({
      url: '/sxProductBasicInfo/',
      method: 'get',
      params
    })
  },

  get(params) {
    return request({
      url: '/sxProductBasicInfo/' + params.pid,
      method: 'get'
    })
  },

  getPage(params) {
    return request({
      url: '/sxProductBasicInfo/page',
      method: 'get',
      params
    })
  },

  update(params) {
    return request({
      url: '/sxProductBasicInfo/update',
      method: 'post',
      data: params
    })
  },

  insert(params) {
    return request({
      url: '/sxProductBasicInfo/insert',
      method: 'post',
      data: params
    })
  },

  remove(params) {
    return request({
      url: '/sxProductBasicInfo/delete',
      method: 'post',
      params
    })
  }
}
